<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/new-list.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/table-list.css">
</head><body><div class="big-box">
    <div class="chaxuntj-list-title" id="cxygjx-list-title">
        <div class="message-box">
            <div class="chaxun-message" style="float:none;">
                <div class="chaxun-tiaojian">
                    <ul>
                      <li>
                           <span>日期：</span>
                           		<div class="input-box begin-time input-group date" id="ygjx-datetimepicker1">
                   				<input id="ygjx-kaishjsj" class="form-control" type="text">
                   				<span class="input-group-addon cxtj-timepicker-icon">
                       				<span class="glyphicon glyphicon-calendar"></span>
                   				</span>
               				</div>
                           <span>-</span>
                           <div class="input-box end-time input-group date" id="ygjx-datetimepicker2">
                               <input id="ygjx-jieshusj" class=" form-control" type="text">
                               <span class="input-group-addon cxtj-timepicker-icon">
                       				<span class="glyphicon glyphicon-calendar"></span>
                   				</span>
                           </div>
                       </li>
                    </ul>
                </div>
                <div class="form-group le-inline" style="float:left;margin-bottom:0;">
                          <label class="label l-name" style="color:#777; font-size:100%;font-weight:500;float:left;line-height:34px;">员工：</label>
                          <div class="menu-up dropdown-search-li" style="position: relative;background:#fff;width:150px">
                          	<input type="hidden" value="">
                          	<div id="yuangong-div" class="btn dropdown-toggle select-menu" data-toggle="dropdown" tabindex="0">全部<b></b></div>
                              <ul id="jixiao-yuangong" class=" dropdown-menu" role="menu" style="width:150px;">
                              </ul>
                          </div>
				</div>
                <div class="button-box-new" style="float:right;margin-right: 55px;">
                    <button id="jixiao-chaxun" class="button"><span>查询</span></button>
                    <div id="jixiao-chongzhi" class="button button1"><span>重置</span></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="menu-tiaoj ">
            <div class="xuanze-tiaoj" style="margin-top: 5px;">
             <input type="hidden" value="1">
                <span>项目分类：</span>
                <ul id="xiangmufl-ul">
                    <li class="xuanzong" value="0">所有</li>
                    <li value="2">药品</li>
                    <li value="5">耗材</li>
                    <li value="4">附加费</li>
                    <li value="3">诊疗项</li>
                </ul>
            </div>
            <div class="chaxun-tiaojian">
                    <ul>
                        <li>
                            <span>项目名称：</span>
                            <div class="input-box-new" style="width: 220px;">
                                <input id="ygjx-xiangmumc" type="text" placeholder="请输入项目名称">
                            </div>
                        </li>
                   </ul>
            </div>
            <div class="clear"></div>
        </div> 
        <div class="ygjx-tongji-brief">
			<span style="display:inline-block">总人次：<span id="zongrenci" class="jx-tongjibrief-value">0人次</span></span>
			<span id="span-zongshouru">总收入：<span id="zongshouru" class="jx-tongjibrief-value">0.00元</span></span>
			<span id="span-zonglilun">总利润：<span id="zonglilun" class="jx-tongjibrief-value">0.00元</span></span>
		</div>
        <div class="clear"></div>
    </div>
    <div id="chaxtj-ygjx-img"></div>
    <div class="list-content">
        <div id="jixiao-quanbuyg" class="table-list" style="display;none">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="20%">员工</th>
                    <th width="20%">就诊人次</th>
                    <th width="20%">收入（元）</th>
                    <th width="35%" class="a-yuangong-lirun">利润（元）</th>
                </tr>
                </thead>
                <tbody id="tb-chaxtjygjxmx1">
                </tbody>
            </table>
             <div id="pagination-fenygojxmx1"></div>
        </div>
        <!-- 按单个员工查询 -->
        <div id="jixiao-dangeyg" class="table-list" style="display:none">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="10%">序号</th>
                    <th width="20%">日期</th>
                    <th width="20%">项目分类</th>
                    <th width="20%">项目名称</th>
                    <th width="20%">销售价（元）</th>
                    <th width="30%" class="a-yuangong-lirun">利润（元）</th>
                </tr>
                </thead>
                <tbody id="tb-chaxtjygjxmx2">
                </tbody>
            </table>
            <div id="pagination-fenygojxmx2"></div>
        </div>
    </div>
</div>
<script src="<%=path %>/static/js/chaxtj-ygjx.js"></script>
<script>
     $(function(){
         var isguanliyuan = false;
         var iskucunpc = false;
         var onlytongji = false;
         if(!true){
        	 $('#yuangong-div').text('17673465583');
        	 $('.dropdown-search-li').css('backgroundColor','rgb(239, 239, 239)');
        	 $('#jixiao-yuangong').remove();
         	 $('#jixiao-quanbuyg').css('display','none');
        	 $('#jixiao-dangeyg').css('display','block');
        	 
         }else{
        	 isguanliyuan = true;
         }
         if(true){
        	 iskucunpc = true;
		 	$('#span-zonglilun').css("display","inline-block");
         }else{
		 	$('#span-zonglilun').css("display","none");
         }
         if(false){
        	 onlytongji = true;
         	 $('#jixiao-quanbuyg').css('display','none');
        	 $('#jixiao-dangeyg').css('display','none');
        	 $('#chaxtj-ygjx-img').html("<img src='"+path+"/image/chaxtj/cxtj-nobody.png'>");
         }
     	 myDateTimePicker($("#ygjx-datetimepicker1"),$("#ygjx-datetimepicker2"));
	   	 var mrkaishisj=$('#ygjx-kaishjsj').val();
     	 var mrjieshusj=$('#ygjx-jieshusj').val();
	 	 getShijian(mrkaishisj,mrjieshusj,isguanliyuan,iskucunpc,onlytongji);
     });
</script>
</body></html>